var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', { title: 'Express123' });
});
router.post('/', function(req, res, next) {
  res.send({id:1,name:"you",old:"18"});
});
router.put('/', function(req, res, next) {
  res.send('嗨');
});
router.delete('/', function(req, res, next) {
  res.send('咯');
});

module.exports = router;
